package test.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import test.dao.UserMapper;
import test.model.User;

@Service
public class UserService {

  @Autowired
  private UserMapper userMapper;



  @Transactional
  public void insertUser(User User) {
    userMapper.insert(User);
  }
  
  public User getUser(int id) {
	  return userMapper.selectByPrimaryKey(id);
  }
  
  public void testUserService() {
	  System.out.println("testUserService");
  }



}